home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Libraries / grayimage / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-30  |  1.2 KB  |  42 lines  |  [TEXT/R*ch]

  1. ge.a
  2.     $(CC) $*.cc
  3.     $(CCL) $*.o libimage.a -o $*
  4.     ./$*
  5.  
  6. # Primary goal
  7.  
  8. a.out: $(MODULES)
  9.     $(CCL) $(MODULES)
  10.     a.out
  11.  
  12. # Library
  13.  
  14. lib:    libimage.a
  15. .PHONY: lib
  16.  
  17. libimage.a::    image.h
  18. #                     Make the library very obsolete
  19.     $(TOUCH) 0101010180 $@
  20.  
  21. libimage.a::    $(LIBMOD)
  22. #             Compile the source files that have been changed 
  23.     $(CC) $?
  24.     listobj=`echo $? | sed s/.cc/.o/g` ; \
  25.     ar rv libimage.a $$listobj &&    \
  26.     rm $$listobj
  27.     ar d libimage.a __.SYMDEF; ranlib libimage.a
  28.  
  29. # Verification routines
  30. vimage:    vimage.o libimage.a
  31.     $(CCL) vimage.o libimage.a -o vimage
  32.     vimage
  33.  
  34. morph_filter:    morph_filter.o libimage.a
  35.     $(CCL) morph_filter.o libimage.a -o morph_filter
  36.     ./morph_filter
  37.  
  38. # Specific dependent goals
  39.  
  40.  
  41. # Dependence rules
  42.